package com.maimao.goods.client;

import com.maimao.core.constant.ServiceContainer;
import com.maimao.core.interceptor.FeignInterceptor;
import com.maimao.core.model.resp.Result;
import com.maimao.goods.client.factory.KillApplyFallBackFactory;
import com.maimao.goods.client.factory.OrderFallBackFactory;
import com.maimao.model.kill.input.ActivityScheduleIdInput;
import groovy.lang.Tuple2;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author MaoLin Wang
 * @date 2021/4/9 4:35 下午
 */
@RequestMapping("/kill/killApply")
@FeignClient(contextId = "killApplyClient", value = ServiceContainer.KILL_SERVICE, fallbackFactory = KillApplyFallBackFactory.class, configuration = FeignInterceptor.class)
public interface KillApplyClient {

    /**
     * 根据活动id和排期id查询已报名(审核通过或未审核的)的skuId列表
     *
     * @param input field1：活动id field2：排期id
     */
    @PostMapping("/querySkuIdsByAcSch")
    Result<List<Long>> querySkuIdsByAcSch(@RequestBody ActivityScheduleIdInput input);
}
